<?
include_once('variables.php');
include_once('libs/Bunch.Class.php');
include_once('libs/anydb/anyDB.php');
include_once('libs/anydb/addon/QueryHelper.php');
include_once('libs/anydb/addon/DBHelper.php');

$pg_host = $GLOBALS['pg_host'];
$pg_db = $GLOBALS['pg_db'];
$pg_username = $GLOBALS['pg_username'];
$pg_password = $GLOBALS['pg_password'];

$master_db = anyDB::getLayer('POSTGRESQL', '', 'pgsql');
$master_db -> connect($pg_host, $pg_db, $pg_username, $pg_password);

$ticket_db = anyDB::getLayer('MYSQL', '', 'mysql');
$ticket_db -> connect($ticket_dbhost, $ticket_dbname, $ticket_dbuser, $ticket_dbpass);

?>